FROM ubuntu:20.04
WORKDIR "/application"

RUN apt-get update \
    && apt-get -y install gcc git make \
    && git config --global http.sslverify false

RUN git clone https://atomgit.com/tongsuo/Tongsuo.git \
     && cd Tongsuo \
     && ./config --prefix=/opt/tongsuo enable-ntls enable-ssl-trace -Wl,-rpath,/opt/tongsuo/lib64 --debug \
    && make -j \
    && make install \
    && /opt/tongsuo/bin/tongsuo version